package com.project_doctor.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project_doctor.pojo.Package;
import com.project_doctor.service.PackageService;
import com.project_doctor.mapper.PackageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xixif
* @description 针对表【t_package(签约服务包表)】的数据库操作Service实现
* @createDate 2025-06-16 14:35:41
*/
@Service
public class PackageServiceImpl extends ServiceImpl<PackageMapper, Package>
    implements PackageService{
    @Autowired
    private PackageMapper packageMapper;

    @Override
    public List<Package> getPackage() {
        LambdaQueryWrapper<Package> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.select(Package::getId, Package::getName);
        return packageMapper.selectList(queryWrapper);
    }
}




